<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MidPhoneLog extends Model
{
    protected $table = 'c_mid_phone_logs';
    public function add($data)
    {
        $this->midphone = $data['midphone'];
        $this->duration = $data['duration'];
        $this->state = $data['state'];
        $this->order_id = $data['order_id'];
        $this->start_time = $data['start_time'];
        $this->end_time = $data['end_time'];
        return $this->save();
    }
}
